/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.uccart_project.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Jason
 */
@Entity
@Table(name = "inventario")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Inventario.findAll", query = "SELECT i FROM Inventario i"),
    @NamedQuery(name = "Inventario.findByInventarioId", query = "SELECT i FROM Inventario i WHERE i.inventarioId = :inventarioId"),
    @NamedQuery(name = "Inventario.findByInventarioNombre", query = "SELECT i FROM Inventario i WHERE i.inventarioNombre = :inventarioNombre"),
    @NamedQuery(name = "Inventario.findByInventarioMarca", query = "SELECT i FROM Inventario i WHERE i.inventarioMarca = :inventarioMarca"),
    @NamedQuery(name = "Inventario.findByInventarioModelo", query = "SELECT i FROM Inventario i WHERE i.inventarioModelo = :inventarioModelo"),
    @NamedQuery(name = "Inventario.findByInventarioValor", query = "SELECT i FROM Inventario i WHERE i.inventarioValor = :inventarioValor"),
    @NamedQuery(name = "Inventario.findByInventarioCantidad", query = "SELECT i FROM Inventario i WHERE i.inventarioCantidad = :inventarioCantidad"),
    @NamedQuery(name = "Inventario.findByInventarioProveedor", query = "SELECT i FROM Inventario i WHERE i.inventarioProveedor = :inventarioProveedor")})
public class Inventario implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "inventario_id")
    private Integer inventarioId;
    @Basic(optional = false)
    @Column(name = "inventario_nombre")
    private String inventarioNombre;
    @Column(name = "inventario_marca")
    private String inventarioMarca;
    @Column(name = "inventario_modelo")
    private String inventarioModelo;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "inventario_valor")
    private BigDecimal inventarioValor;
    @Column(name = "inventario_cantidad")
    private BigDecimal inventarioCantidad;
    @Column(name = "inventario_proveedor")
    private String inventarioProveedor;

    public Inventario() {
    }

    public Inventario(Integer inventarioId) {
        this.inventarioId = inventarioId;
    }

    public Inventario(Integer inventarioId, String inventarioNombre) {
        this.inventarioId = inventarioId;
        this.inventarioNombre = inventarioNombre;
    }

    public Integer getInventarioId() {
        return inventarioId;
    }

    public void setInventarioId(Integer inventarioId) {
        this.inventarioId = inventarioId;
    }

    public String getInventarioNombre() {
        return inventarioNombre;
    }

    public void setInventarioNombre(String inventarioNombre) {
        this.inventarioNombre = inventarioNombre;
    }

    public String getInventarioMarca() {
        return inventarioMarca;
    }

    public void setInventarioMarca(String inventarioMarca) {
        this.inventarioMarca = inventarioMarca;
    }

    public String getInventarioModelo() {
        return inventarioModelo;
    }

    public void setInventarioModelo(String inventarioModelo) {
        this.inventarioModelo = inventarioModelo;
    }

    public BigDecimal getInventarioValor() {
        return inventarioValor;
    }

    public void setInventarioValor(BigDecimal inventarioValor) {
        this.inventarioValor = inventarioValor;
    }

    public BigDecimal getInventarioCantidad() {
        return inventarioCantidad;
    }

    public void setInventarioCantidad(BigDecimal inventarioCantidad) {
        this.inventarioCantidad = inventarioCantidad;
    }

    public String getInventarioProveedor() {
        return inventarioProveedor;
    }

    public void setInventarioProveedor(String inventarioProveedor) {
        this.inventarioProveedor = inventarioProveedor;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (inventarioId != null ? inventarioId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Inventario)) {
            return false;
        }
        Inventario other = (Inventario) object;
        if ((this.inventarioId == null && other.inventarioId != null) || (this.inventarioId != null && !this.inventarioId.equals(other.inventarioId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.uccart_project.model.Inventario[ inventarioId=" + inventarioId + " ]";
    }
    
}
